Optimal. Leaf size=134 \[ \frac{\tan (e+f x) \, _2F_1\left (2,\frac{1}{2} (n p+1);\frac{1}{2} (n p+3);-\tan ^2(e+f x)\right ) \left (c (d \tan (e+f x))^p\right )^n}{a f (n p+1)}-\frac{i \tan ^2(e+f x) \, _2F_1\left (2,\frac{1}{2} (n p+2);\frac{1}{2} (n p+4);-\tan ^2(e+f x)\right ) \left (c (d \tan (e+f x))^p\right )^n}{a f (n p+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.276277, antiderivative size = 134, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 5, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {6677, 848, 82, 73, 364} \[ \frac{\tan (e+f x) \, _2F_1\left (2,\frac{1}{2} (n p+1);\frac{1}{2} (n p+3);-\tan ^2(e+f x)\right ) \left (c (d \tan (e+f x))^p\right )^n}{a f (n p+1)}-\frac{i \tan ^2(e+f x) \, _2F_1\left (2,\frac{1}{2} (n p+2);\frac{1}{2} (n p+4);-\tan ^2(e+f x)\right ) \left (c (d \tan (e+f x))^p\right )^n}{a f (n p+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6677
Rule 848
Rule 82
Rule 73
Rule 364
Rubi steps
\begin{align*} \int \frac{\left (c (d \tan (e+f x))^p\right )^n}{a+i a \tan (e+f x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (c (d x)^p\right )^n}{(a+i a x) \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac{\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname{Subst}\left (\int \frac{(d x)^{n p}}{(a+i a x) \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac{\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname{Subst}\left (\int \frac{(d x)^{n p}}{\left (\frac{1}{a}-\frac{i x}{a}\right ) (a+i a x)^2} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac{\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname{Subst}\left (\int \frac{(d x)^{n p}}{\left (\frac{1}{a}-\frac{i x}{a}\right )^2 (a+i a x)^2} \, dx,x,\tan (e+f x)\right )}{a f}-\frac{\left (i (d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname{Subst}\left (\int \frac{(d x)^{1+n p}}{\left (\frac{1}{a}-\frac{i x}{a}\right )^2 (a+i a x)^2} \, dx,x,\tan (e+f x)\right )}{a d f}\\ &=\frac{\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname{Subst}\left (\int \frac{(d x)^{n p}}{\left (1+x^2\right )^2} \, dx,x,\tan (e+f x)\right )}{a f}-\frac{\left (i (d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \operatorname{Subst}\left (\int \frac{(d x)^{1+n p}}{\left (1+x^2\right )^2} \, dx,x,\tan (e+f x)\right )}{a d f}\\ &=\frac{\, _2F_1\left (2,\frac{1}{2} (1+n p);\frac{1}{2} (3+n p);-\tan ^2(e+f x)\right ) \tan (e+f x) \left (c (d \tan (e+f x))^p\right )^n}{a f (1+n p)}-\frac{i \, _2F_1\left (2,\frac{1}{2} (2+n p);\frac{1}{2} (4+n p);-\tan ^2(e+f x)\right ) \tan ^2(e+f x) \left (c (d \tan (e+f x))^p\right )^n}{a f (2+n p)}\\ \end{align*}
Mathematica [F] time = 19.8215, size = 0, normalized size = 0. \[ \int \frac{\left (c (d \tan (e+f x))^p\right )^n}{a+i a \tan (e+f x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 8.728, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( c \left ( d\tan \left ( fx+e \right ) \right ) ^{p} \right ) ^{n}}{a+ia\tan \left ( fx+e \right ) }}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\left (c \left (\frac{-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{p}\right )^{n}{\left (e^{\left (2 i \, f x + 2 i \, e\right )} + 1\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{2 \, a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (\left (d \tan \left (f x + e\right )\right )^{p} c\right )^{n}}{i \, a \tan \left (f x + e\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]